//
//  perfixHeader.swift
//  SYWeibo
//
//  Created by Saya on 16/4/9.
//  Copyright © 2016年 黄金果. All rights reserved.
//


import UIKit
//在class之外声明的变量,为全局变量
let client_id:String = "2439684754"
let redirect_uri:String = "http://www.itheima.com"
let secret :String = "a98da3ace555ee9d674a85aebc4c35a9"

let CLIENT_ID:String = "client_id"
let CLIENT_SECRET:String = "client_secret"
let GRANT_TYPE:String = "grant_type"
let CODE:String = "code"
let REDIRECT_URI:String = "redirect_uri"

//切换rootcontroller的通知名称
let SYSwitchRootController = "SYSwitchRootController"

let errorMessage = "你的网络不给力哦"

//随机颜色
func randomColor()-> UIColor {
    return UIColor(red: CGFloat(random()%256) / 255, green: CGFloat(random()%256) / 255, blue: CGFloat(random()%256) / 255, alpha: 1)
}

//cell的margin
let marginForCell :CGFloat = 8

let screenWidth = UIScreen.mainScreen().bounds.width
let screenHeight = UIScreen.mainScreen().bounds.height
